package com.sss.hloster0308;

public class TestCompany {

	public static void main(String[] args) {
		ColaEmployee[] Cola = new ColaEmployee[3];
		Cola[0] = new SalariedEmployee("张三", 3, 5000);
		Cola[1] = new HourlyEmployee("李四", 4, 50, 120);
		Cola[2] = new SalesEmployee("王五", 5, 4000, 0.3);
		Cola[0].getSalary(4);
		Cola[1].getSalary(4);
		Cola[2].getSalary(4);
	}

}
